package com.itheima.inter5;

import com.itheima.inter4.Inter;

/*
接口和接口之间的关系
 */
public interface InterA {
    void sing();

}
interface  InterC {
    void  rap();

}
interface  InterB extends InterA, InterC {
    void dance();
    default void study(){
        System.out.println("好好学java");
    }
}
interface  InterD {
    void baskestball();
    default void study(){
        System.out.println("好好学前端");
    }
}
class ClassA{
    public void sing(){
        System.out.println("只因你太美");
    }

}
class CLassB extends ClassA implements InterB,InterD{

    //sing可以先重父类继承过来
    @Override
    public void rap() {

    }

    @Override
    public void dance() {

    }

    @Override
    public void study() {
        System.out.println("好好打游戏");
    }

    @Override
    public void baskestball() {

    }
}